<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
</head>
<body>
    <script>
        // 1. 先查询出来第一个的顾客信息
        // 2. 获取到该顾客的id
        // 3. 再根据该顾客的id查询出来对应的评论
        $.ajax({
            url:'http://39.96.21.48:5588/customer/findAll',
            method:'get',
            success:function(res){
                var obj = {
                    cusId:res.data[0].id
                }
                $.ajax({
                    url:'http://39.96.21.48:5588/comment/findCommentByCus',
                    method:'get',
                    data:obj,
                    success:function(comment){
                        console.log(comment);
                    },
                    error:function(){}
                })
            }
        })
    </script>
</body>
</html>